/*
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.odichy.andfml.domain;

import android.text.Html;

/**
 * AndFML, an FMyLife.com client on Google Android platform.
 *
 * @author Odin Liu<odinushuaia@gmail.com>
 *
 * @version 1.0.0
 */
public class FMLItem {
	public static final String ID = "ID";
	public static final String TEXT = "TEXT";
	public static final String AGREE = "AGREE";
	public static final String DESERVED = "DESERVED";
	public static final String COMMENTS = "COMMENTS";
	
	private int id;
	private String author;
	private String authorPic;
	private String category;
	private String date;
	private int agree;
	private int deserved;
	private int comments;
	private String text;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getAuthorPic() {
		return authorPic;
	}
	public void setAuthorPic(String authorPic) {
		this.authorPic = authorPic;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public int getAgree() {
		return agree;
	}
	public void setAgree(int agree) {
		this.agree = agree;
	}
	public int getDeserved() {
		return deserved;
	}
	public void setDeserved(int deserved) {
		this.deserved = deserved;
	}
	public int getComments() {
		return comments;
	}
	public void setComments(int comments) {
		this.comments = comments;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getDescription() {
		return this.text.length()<93?this.text:this.text.substring(0, 90)+"...";
	}
	public String getDecodeText() {
		return Html.fromHtml(this.text).toString();
	}
}
